package com.mandala.entry;


import javax.naming.Name;

import org.springframework.ldap.odm.annotations.Attribute;
import org.springframework.ldap.odm.annotations.Entry;
import org.springframework.ldap.odm.annotations.Id;

import com.fasterxml.jackson.annotation.JsonIgnore;

@Entry(objectClasses = {"organizationalUnit","top"},base = "ou=permission")
public class Permission {
	 @Id
	 @JsonIgnore
	 private Name dn;
	 
	 @Attribute(name="url")
	 private String url;
	 
	 @Attribute(name="code")
	 private String code;
	 
	 @Attribute(name="resourceName")
	 private String resourceName;
	 
	 @Attribute(name="order")
	 private String order;
	 
	 @Attribute(name="ou")
	 private String ou;
	 
	 @Attribute(name="parentId")
	 private String parentId;
	 
	 @Attribute(name="systemId")
	 private String systemId;
	 
	 @Attribute(name="status")
	 private String status;
	 
	 @Attribute(name="isDelete")
	 private String isDelete;
	 
	 @Attribute(name="icon")
	 private String icon;
	 
	 @Attribute(name="description")
	 private String description;
	 
	 @Attribute(name="resourceType")
	 private String resourceType;
	 
	 @Attribute(name="permissionType")
	 private String permissionType;

	public Name getDn() {
		return dn;
	}

	public void setDn(Name dn) {
		this.dn = dn;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getResourceName() {
		return resourceName;
	}

	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}


	public String getOu() {
		return ou;
	}

	public void setOu(String ou) {
		this.ou = ou;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	
	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getSystemId() {
		return systemId;
	}

	public void setSystemId(String systemId) {
		this.systemId = systemId;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(String isDelete) {
		this.isDelete = isDelete;
	}


	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getResourceType() {
		return resourceType;
	}

	public void setResourceType(String resourceType) {
		this.resourceType = resourceType;
	}

	public String getPermissionType() {
		return permissionType;
	}

	public void setPermissionType(String permissionType) {
		this.permissionType = permissionType;
	}
	 
	 
	 
	
}
